import request from '@/utils/request'

//列表
export function getcarList(data){
    return request({
        url: 'car',
        method: 'get',
        params:data
      })
}

//新增
export function createCar(data){
    return request({
        url: 'car/create',
        method: 'post',
        data:data
      })
}

// 详情
export function getreadInfo(data){
    return request({
        url: 'car/read',
        method: 'get',
        params:data,
        headers:{
          'showLoading':false
        }
      })
}

//编辑
export function editCarinfo(data){
    return request({
        url: 'car/update',
        method: 'put',
        data:data
      })
}

// 删除
export function deleteItem(data){
    return request({
        url: 'car/delete',
        method: 'delete',
        data:data
      })
}



//报名点选项
export function getbmdOption(data){
  return request({
      url: 'enroll/option ',
      method: 'get',
      params:data
    })
}